Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added index for mongo on ban ids #397

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

antoineludeau
Copy link
Member

@antoineludeau antoineludeau commented Apr 30, 2024

Context

In order to make performant request on mongo, especially for a short term use case calculating stats, we need to add indexes on mongo database.

Enhancement

This PR ads indexes on :

  • for numeros collection : banId (unique), banIdMainCommonToponym, banIdSecondaryCommonToponyms, "banIdDistrict"
  • for voies collection : banId (unique) and banIdDistrict
  • for communes : banId (unique)

@antoineludeau antoineludeau merged commit 6a386c1 into master Apr 30, 2024
1 check passed
@antoineludeau antoineludeau linked an issue Apr 30, 2024 that may be closed by this pull request
@antoineludeau antoineludeau deleted the antoineludeau/add-ban-id-index branch May 22, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Mongo] : Ajout des indexes sur les identifiants uniques
2 participants